import { Injectable, EventEmitter } from '@angular/core';

import * as I from '../ApiRequest/interface/ICustomer';
import { CustomerApirequest } from '../ApiRequest/Customer.Apirequest';

@Injectable()
export class UsermanegeService {

  stepsEmit: EventEmitter<number> = new EventEmitter;

  constructor(
    private customerApirequest: CustomerApirequest
  ) { }

  /**
   * 添加用户
   * @param p
   */
  async addCustomer(p: I.PaddCustomer): Promise<string> {
    return await this.customerApirequest.addCustomer(p);
  }

}